<!--
 * @Description: 全息数据大屏
 * @Author: huacong
 * @Date: 2020-09-27 15:05:23
 * @LastEditTime: 2020-10-26 09:28:26
 * @LastEditors: huacong
-->
<template lang="pug">
  .dpBox.pr.h(@keyup:esc="togglFullScreen")
    img.pa(:src="LOGO" style="right: 100px;top: 40px")
    a.fullscreen(@click="togglFullScreen" href="javascript:")
      i(class="iconfont" :class="fullScreen ? 'icon-hkscreen1' : 'icon-hkscreen'")
    .header
      h2.tc {{title}}
    .content
      slot
</template>
<script>
import LOGO from '@/assets/logo_zhy.png'
import fullscreenMixin from '../core/mixins/fullscreen'

export default {
  name: 'HolographicData',
  mixins: [fullscreenMixin],
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      LOGO
    }
  },
  mounted () {
    document.addEventListener('resize', function () {
      console.log(12)
    })
  }
}
</script>
<style lang="scss" scoped>
.fullscreen{
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  background: #021133;
  color:#03a3de;
  border: 1px solid #112b68;
  top: 16px;
  right: 40px;
  text-align: center;
  z-index: 1000;

  i {
    font-size: 22px
  }

  &:hover{
    color: #35bff2
  }
}

.dpBox{
  min-height: 100vh;
  background: url('~@/assets/dp_bg.jpg') center center no-repeat;
  background-size: 100% 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;

  .header{
    position: relative;
    height: 6.4vh;
    background: url('~@/assets/dp_top.png') center center no-repeat;
    background-size: 100% 100%;

    h2 {
      background-image: -webkit-linear-gradient(bottom, #ffffff, #69a2f7);
      font-size: 30px;
      font-weight: bold;
      -webkit-background-clip: text;
      -moz-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      -moz-text-fill-color: transparent;
      text-fill-color: transparent;
      color: transparent;
      position: relative;
    }

    .panelTitles {
      position: absolute;
      left: 0;
      bottom: 12px;
      color: #fff;

      a {
        display: inline-block;
        padding: 16px 30px;
        cursor: pointer;
        color: #fff;

        &.cur{
          color: #16b0ff;
          background: url('~@/assets/dp_cur.png') center bottom no-repeat;
          background-size: 100% 8px;
        }
      }
    }
  }

  .content{
    height: 93.6vh;
    box-sizing: border-box;
    padding: 0 10px 10px;
  }

}
</style>
